package com.kabigon.jvm.stack;

/**
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.jvm.stack
 * @data 2023/2/18 16:42
 */
public class Demo1_16 {

    public static void main(String[] args) {

        new Thread(() -> {
            System.out.println("1...");
            while (true) {

            }

        }, "thrad1").start();

        new Thread(() -> {
            System.out.println("2...");
            try {
                Thread.sleep(1000000L);
            } catch (InterruptedException e) {
               e.printStackTrace();
            }

        }, "thrad2").start();

        new Thread(() -> {
            System.out.println("3...");
            try {
                Thread.sleep(1000000L);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }, "thrad3").start();
    }

}
